package com.auxgroup.smarthome.service;

import com.auxgroup.smarthome.entity.DeviceInfoEntity;
import com.auxgroup.smarthome.service.inner.DeviceInfoInnerService;
import com.auxgroup.smarthome.syscode.Syscode;
import com.auxgroup.smarthome.web.ApiResponse;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * Created by fju on 2017/7/26.
 */
@Component
public class DeviceInfoInnerServiceFallback implements DeviceInfoInnerService {

    @Override
    public ApiResponse<String> getMappedDid(@RequestParam("deviceId") String deviceId) {
        return ApiResponse.prompt(Syscode.FAIL);
    }

    @Override
    public ApiResponse<List<DeviceInfoEntity>> getDeviceList(@RequestParam("skip") Integer skip, @RequestParam("limit") Integer limit) {
        return ApiResponse.prompt(Syscode.FAIL);
    }

    @Override
    public ApiResponse<Integer> getDeviceCount() {
        return ApiResponse.prompt(Syscode.FAIL);
    }


}
